import Mock from 'mockjs'

const data = Mock.mock({
    'coupons|10': [{
        'id|+1': 1,
        'code': /[A-Z]{5}\d{5}/,
        'discount|10-50': 10,
        'obtainedDate': '@date("yyyy-MM-dd")',
        'expirationDate': '@date("yyyy-MM-dd")',
        'isActive': '@boolean',
        'amount': '@integer(1, 100)',
    }]
})
Mock.mock('/coupon', 'get', data.coupons)

